import request from "../../utils/request"
// 与岗位相关的接口
const levelAdd=(data)=>{
    return request({
        url:"/level/add",
        method:"post",
        data    
    })
}
const levelList=()=>{
    return request({
        url:"/level/list",
        method:"get"
    })
}
const levelDelete=(id)=>{
    return request({
        url:"/level/delete/"+id,
        method:"delete",
    })
}
const levelUpdate=(data)=>{
    // {
    //     "id": 0,
    //     "name": "",
    //     "level": 0,
    //     "salay": 0,
    //     "sortCode": 0,
    //     "status": 0
    //   }
    return request({
        url:"/level/update",
        method:"post",
        data
    })
}

const levelAll=()=>{
    return request({
        url:"/level/getAll",
        method:"get"
    })
}


const levelListDelete=()=>{
    return request({
        url:"/level/listDelete",
        method:"get",
    })
}

export {levelAdd,levelList,levelDelete,levelUpdate,levelAll,levelListDelete}